/*
 * Copyright (c) 2009 Nathaniel Houghton <nathan@brainwerk.org>
 *                    Robert Kirchgessner <rkirchge@gmail.com>
 *
 * Permission to use, copy, modify, and distribute this software for
 * any purpose with or without fee is hereby granted, provided that
 * the above copyright notice and this permission notice appear in all
 * copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
 * OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 */
 
#ifndef MENU_RES_H
#define MENU_RES_H

#include "ui.h"

#define MENU_RES_NAME(ID) _RES_##ID
#define MENU_DEC_STATIC(ID) extern const struct static_menu_entry _RES_##ID
#define MENU_DEC_DYNAMIC(ID) extern const struct dynamic_menu_entry _RES_##ID
#define MENU_RES_STATIC(ID, STR, LEFT, RIGHT, ENTER, FP) const struct static_menu_entry _RES_##ID = { MENU_ENTRY_STATIC, ID, LEFT, RIGHT, ENTER, FP, STR }
#define MENU_RES_DYNAMIC(ID, DISP, LEFT, RIGHT, ENTER, FP) const struct static_menu_entry _RES_##ID = { MENU_ENTRY_DYNAMIC, ID, LEFT, RIGHT, ENTER, FP, DISP }

#define MENU_ID_ROOT 0x0
#define MENU_ID_CHECK_DTC 0x1
#define MENU_ENTRY_COUNT 2

MENU_DEC_STATIC( MENU_ID_ROOT );
MENU_DEC_STATIC( MENU_ID_CHECK_DTC );


#endif
